<?php while (have_posts()) : the_post(); ?>

<article class="post-digest">
    
    <header>
        <h1 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" target="_blank" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php echo mb_strimwidth(get_the_title(),0,40,"...");?></a><em><?php $t1=$post->post_date; $t2=date("Y-m-d H:i:s"); $diff=(strtotime($t2)-strtotime($t1))/3600; if($diff<24){echo " New!";} ?></em> </h1>
        <small class="article-info">
            <span>发表时间：</span>
            <time pubdate="" datetime="<?php the_time('Y年m月d日G:H'); ?>" class="date"><?php the_time('Y年m月d日G:H'); ?>&nbsp;</time>
            <?php comments_popup_link('抢沙发', '1条评论&nbsp;', '%条评论&nbsp;'); ?>
            <span>作者：</span><a rel="author" title="Posts by <?php the_author(); ?>"><?php the_author(); ?></a>
        </small>
    </header>
    
     <div class="digest">
          <?php theme_thumbnail(); ?>
          <?php echo mb_strimwidth(strip_tags(apply_filters('the_content', $post->post_content)), 0, 365,"..."); ?>
    </div>
    
    <footer>
        <small>
            <span class="tag"><?php the_tags('标签：', ' ', ''); ?> </span>
            <?php edit_post_link('Edit', '', ' &bull; '); ?>
        </small>
    </footer>

</article>

<?php endwhile;?>